// 	Name: 09.c
//	Description: Chapter 5 project 9
//	Author: StableGenius
//	Date: 2020-05-07
//	Email: feng@dongfa.pro

#include <stdio.h>

int main(void){
	int mm1, dd1, yy1, mm2, dd2, yy2, date1, date2;
	
	printf("Enter first date (mm/dd/yy): ");
	scanf("%d /%d /%d", &mm1, &dd1, &yy1);
	date1 = yy1 * 365 + mm1 * 30 + dd1;
	printf("%d", mm1);
	
	printf("Enter second date (mm/dd/yy): ");
	scanf("%d /%d /%d", &mm2, &dd2, &yy2);
	date2 = yy2 * 365 + mm2 * 30 + dd2;
	
	if (date1 < date2){
		printf("%d/%d/%.2d is earlier than %d/%d/%.2d", mm1, dd1, yy1, mm2, dd2, yy2);
	} else {
		printf("%d/%d/%.2d is earlier than %d/%d/%.2d", mm2, dd2, yy2, mm1, dd1, yy1);
	}
    
	return 0;
}
